package com.steven.sync.mianshi;

import com.steven.sync.ReentrantLock_test;

import java.util.concurrent.locks.ReentrantLock;

public class Test {
    public static void main(String[] args) {
        ReentrantLock lock = new ReentrantLock();

        for (int i = 0; i < 10; i++) {
            lock.lock();
                System.out.println("你好");
            lock.unlock();
        }
    }
}
